<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="/static/houtai/css/style.css" rel="stylesheet" type="text/css" />
    <!--    引入编辑器的js文件-->
    <script type="text/javascript" src="/static/houtai/js/jquery-3.0.0.min.js"></script>
    <script type="text/javascript" src="/static/houtai/commons/common.js"></script>
    <script src="/static/houtai/js/jquery.js"></script>
    <script src="/static/houtai/js/jquery.form.min.js"></script>
    <script src="/static/houtai/js/uploadPreview.js"></script>
    <%--<script src="/static/houtai/js/WdatePicker.js"></script>--%>
    <!--日历 -->
    <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css">
    <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
    <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
    <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/style.css">
    <script language="javascript" type="text/javascript" src="/static/houtai/js/My97DatePicker/WdatePicker.js"></script>
   <style>
       #d412{
           width: 345px;
           height: 32px;
           line-height: 32px;
           border-top: solid 1px #a7b5bc;
           border-left: solid 1px #a7b5bc;
           border-right: solid 1px #ced9df;
           border-bottom: solid 1px #ced9df;
           text-indent: 10px;
       }
   </style>
</head>
<? php include "functionsession.php";?>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="#">设置奖品</a></li>
    </ul>
</div>
<div class="formbody">
    <div class="formtitle"><span>设置奖品</span></div>
    <form action="/prize/addPrize" method="post" enctype="multipart/form-data">
        <ul class="forminfo">
            <li><label>奖品名称：</label><input name="name" type="text" class="dfinput" id="name"/></li>
            <li><label>奖品内容：</label><input name="prizeContent" type="text" class="dfinput" id="prizeContent"/></li>
            <li><label>奖品价值：</label><input name="price" type="number" class="dfinput" id="price"  min="0"/></li>
            <li><label>奖品数量：</label><input name="prizeCount" type="number" class="dfinput" id="prizeCount" min="0" /></li>
            <li><label>奖章数量：</label><input name="medalCount" type="number" class="dfinput" id="medalCount" min="0" /></li>
            <li><label>活动开始时间：</label>
                <input name="startTime" type="text" class="Wdate" id="d412" class="dfinput" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'2008-03-08 11:30:00',maxDate:'2008-03-10 20:59:30'})" style="width: " /></li>
            <li><label>活动结束时间：</label>
                <input name="endTime" type="text" class="Wdate" id="d412" class="dfinput" onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'2008-03-08 11:30:00',maxDate:'2008-03-10 20:59:30'})" /></li>
            </li>
            <li><label>图片：</label><input type="file" id="up_img_WU_FILE_0" name="file" /></li>
            <li><label>&nbsp;</label><input type="submit" class="btn" value="确认保存"/></li>
        </ul>
    </form>
</div>
<script>
    $(function () {
        if("200"== ${httpCode}){
            alert("添加成功！");
        }
    });
</script>
</body>
<%@ include file="foot.jsp"%>